Page({
  data: {
    value: '',
    show:false,
    showTime:'',
    currentDate: '12:00',
    minHour: 10,
    maxHour: 20,
    filter(type, options) {
      if (type === 'minute') {
        return options.filter((option) => option % 30 === 0);
      }
  
      return options;
    },
  },
  onClickLeft(){
    wx.navigateBack()
  },
  selectTime(e) {
    this.setData({
      showTime: e.detail,
      show:false
    });
    // console.log(e);
  },
  showPopup() {
    this.setData({ show: true });
  },

  cancelTime() {
    this.setData({ show: false });
  },
  tijiaoYanchi(){
    wx.$toast('发请求提交')
    wx.navigateBack({
      delta: 1  // 返回的页面数，如果 delta 参数的值大于现有页面数，则返回到首页
    })
  }
})